<template>
    <view>
        <!-- #ifdef MP-WEIXIN -->
        <block v-if="sid == 'share'">
            <top-nav :inner-title="title" is-show-back="false" is-fixed="true" :navH="navH" :n="n" is-white="bg-white" opacity="1"></top-nav>
        </block>
        <block v-else>
           <top-nav :inner-title="title" is-show-back="true" is-fixed="true" :navH="navH" :n="n" is-white="bg-white" opacity="1"></top-nav>
        </block>
        <view  :style="{height:navH + 'px'}"></view>
        <!-- #endif -->
        <view class='content'>
          <image :src="page" mode="widthFix" style="width:100%;"></image>
        </view>
    </view>
</template>

<script>	
	import topNav from '@/template/topnav/index.vue';
	export default {
		components: { topNav },
		data() {
			return {
				page: '',
                sid: '',
				navH:0,
				n:0,
				title: '同学快跑',
				fromPage: ''
			}
		},
		onLoad: function(options){
			var sid   = options.sid || '';
            this.page = options.url;
			this.sid  = sid;
            this.navH = getApp().globalData.navHeight; 
			this.n    = getApp().globalData.n;
		 },  
		 methods:{
			 onShareAppMessage: function () {
                var self = this;
                var return_url = self.page;
                var path = '/pagesOther/imageview/index?url=' + return_url + '&sid=share';
                return {
                  title: self.title,
                  path: path,
                  success: function (res) {
                  }
                }
              },
		 }
		
	}
</script>

